//
//  LinegraphCell.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/9/5.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "LinegraphCell.h"

#import "LinegraphView.h"
@interface LinegraphCell ()

@property(nonatomic,strong)LinegraphView * linegraphView;
@end
@implementation LinegraphCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if(self  = [super initWithStyle:style reuseIdentifier:reuseIdentifier]){
        self.cellHeight = Bill_height(226);
        self.linegraphView = [[LinegraphView alloc] initWithFrame:CGRectMake(globalMargin, 0, ScreenWidth-2*globalMargin, self.cellHeight)];
        self.linegraphView.maxRowValue = 5000;
        self.linegraphView.minRowValue = 0;
        self.linegraphView.rows = 7;
        
        self.linegraphView.maxColValue = 30;
        self.linegraphView.minColValue = 0;
        self.linegraphView.cols = 7;
        [self.linegraphView setUpTable];
        [self.contentView addSubview:self.linegraphView];
    }
    return self;
}
-(void)setRowDatas:(NSArray *)rowDatas colDatas:(NSArray *)colDatas{
    [self.linegraphView setRowDatas:rowDatas colDatas:colDatas];
}
-(void)setSelected:(BOOL)selected animated:(BOOL)animated{
    
}

-(void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated{
    
}
@end
